package com.shop.admin.controller;

import com.shop.api.feign.PictureFeign;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

@Controller
public class PictureController {

    private static Logger logger = LoggerFactory.getLogger(PictureController.class);

    @Autowired
    private PictureFeign pictureFeign;

    @RequestMapping("/pic/upload")
    @ResponseBody
    public String picUpload(MultipartFile uploadFile,MultipartFile wangEditorH5File){
        return pictureFeign.picUpload(uploadFile,wangEditorH5File);
    }
}
